if __name__ == '__main__':
    blood = 2025
    for i in range(1, 10000):
        blood -= 5
        if i % 2 == 1:
            blood -= 15
        else:
            blood -= 2
        if i % 3 == 1:
            blood -= 2
        if i % 3 == 2:
            blood -= 10
        if i % 3 == 0:
            blood -= 7
        if blood <= 0:
            print(i)
            break
